package com.sojson.util.mq.rabbit.immit.config;

import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.amqp.RabbitAutoConfiguration;
import org.springframework.context.annotation.Conditional;
import org.springframework.context.annotation.Configuration;

import com.sojson.util.mq.rabbit.condition.RabbitCloseCondittion;

/**
 * 关闭RabbitMQ的自动配置
 */
@Configuration
/** 是否注入这个Bean */
@Conditional(RabbitCloseCondittion.class)
/** EnableAutoConfiguration注解，关闭springBoot关于RabbitMQ的一些自动注入 */
@EnableAutoConfiguration(exclude = {RabbitAutoConfiguration.class})
public class RabbitCloseConfig {

}